|
@@ -20,6 +20,7 @@ import Message from "@/components/base/components/message/message.vue";
|
|
|
|
|
|
export default class UIControl {
|
|
|
constructor(layer, newsletter, graphicStateUI) {
|
|
|
+ this._prompts = []
|
|
|
this.layer = layer;
|
|
|
this.newsletter = newsletter;
|
|
|
this.graphicStateUI = graphicStateUI;
|
|
@@ -236,6 +237,12 @@ export default class UIControl {
|
|
|
|
|
|
|
|
|
prompt(msg) {
|
|
|
- return Message.success({ msg })
|
|
|
+ this._prompts.push(Message.success({ msg }))
|
|
|
+ }
|
|
|
+
|
|
|
+ hidePrompt() {
|
|
|
+ for (let prompt of this._prompts) {
|
|
|
+ prompt()
|
|
|
+ }
|
|
|
}
|
|
|
}
|