[SSE] Refactoring set action link event
This commit is contained in:
parent
ec328dd48e
commit
75d6ab646f
|
@ -1173,6 +1173,9 @@ define([
|
|||
},
|
||||
|
||||
onSetActionLink: function (url) {
|
||||
if (Common.Utils.InternalSettings.get("sse-dialog-link-visible"))
|
||||
return;
|
||||
|
||||
var me = this;
|
||||
navigator.clipboard && navigator.clipboard.writeText(url)
|
||||
.then(function() {
|
||||
|
|
|
@ -258,6 +258,16 @@ define([
|
|||
return [this.inputUrl, this.internalList, this.inputRange, this.inputDisplay, this.inputTip];
|
||||
},
|
||||
|
||||
show: function() {
|
||||
Common.UI.Window.prototype.show.apply(this, arguments);
|
||||
Common.Utils.InternalSettings.set("sse-dialog-link-visible", true);
|
||||
},
|
||||
|
||||
close: function() {
|
||||
Common.Utils.InternalSettings.set("sse-dialog-link-visible", false);
|
||||
Common.UI.Window.prototype.close.apply(this, arguments);
|
||||
},
|
||||
|
||||
setSettings: function(settings) {
|
||||
if (settings) {
|
||||
var me = this;
|
||||
|
|
Loading…
Reference in a new issue