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