mirror of https://github.com/jumpserver/jumpserver
[Update] Stash
parent
fb9e2ac9f6
commit
f4136decde
|
@ -67,7 +67,7 @@ class TreeMixin:
|
|||
|
||||
@classmethod
|
||||
def refresh_node_assets(cls, t=None):
|
||||
logger.debug("Refresh node tree assets")
|
||||
logger.debug("Refresh node assets")
|
||||
key = cls.tree_assets_cache_key
|
||||
ttl = cls.tree_cache_time
|
||||
if not t:
|
||||
|
|
|
@ -428,11 +428,13 @@ $(document).ready(function(){
|
|||
requestApi({
|
||||
url: url,
|
||||
method: 'DELETE',
|
||||
success:refreshPage,
|
||||
flash_message:false,
|
||||
});
|
||||
success: function () {
|
||||
var msg = "{% trans 'Asset Deleted.' %}";
|
||||
swal("{% trans 'Asset Delete' %}", msg, "success");
|
||||
refreshPage();
|
||||
},
|
||||
flash_message: false,
|
||||
});
|
||||
}
|
||||
function fail() {
|
||||
var msg = "{% trans 'Asset Deleting failed.' %}";
|
||||
|
@ -443,7 +445,8 @@ $(document).ready(function(){
|
|||
method: 'POST',
|
||||
body: JSON.stringify(data),
|
||||
success: success,
|
||||
error:fail
|
||||
error: fail,
|
||||
flash_message: false
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue