wip
This commit is contained in:
parent
138c9868e8
commit
deb3df1536
67 changed files with 229 additions and 229 deletions
|
|
@ -85,7 +85,7 @@ export default defineComponent({
|
|||
try {
|
||||
ast = parse(this.script);
|
||||
} catch (e) {
|
||||
this.$root.showDialog({
|
||||
this.$store.dispatch('showDialog', {
|
||||
type: 'error',
|
||||
text: 'Syntax error :('
|
||||
});
|
||||
|
|
@ -93,7 +93,7 @@ export default defineComponent({
|
|||
}
|
||||
const meta = AiScript.collectMetadata(ast);
|
||||
if (meta == null) {
|
||||
this.$root.showDialog({
|
||||
this.$store.dispatch('showDialog', {
|
||||
type: 'error',
|
||||
text: 'No metadata found :('
|
||||
});
|
||||
|
|
@ -101,7 +101,7 @@ export default defineComponent({
|
|||
}
|
||||
const data = meta.get(null);
|
||||
if (data == null) {
|
||||
this.$root.showDialog({
|
||||
this.$store.dispatch('showDialog', {
|
||||
type: 'error',
|
||||
text: 'No metadata found :('
|
||||
});
|
||||
|
|
@ -109,7 +109,7 @@ export default defineComponent({
|
|||
}
|
||||
const { name, version, author, description, permissions, config } = data;
|
||||
if (name == null || version == null || author == null) {
|
||||
this.$root.showDialog({
|
||||
this.$store.dispatch('showDialog', {
|
||||
type: 'error',
|
||||
text: 'Required property not found :('
|
||||
});
|
||||
|
|
@ -142,7 +142,7 @@ export default defineComponent({
|
|||
ast: serialize(ast)
|
||||
});
|
||||
|
||||
this.$root.showDialog({
|
||||
this.$store.dispatch('showDialog', {
|
||||
type: 'success',
|
||||
iconOnly: true, autoClose: true
|
||||
});
|
||||
|
|
@ -154,7 +154,7 @@ export default defineComponent({
|
|||
|
||||
uninstall() {
|
||||
this.$store.commit('deviceUser/uninstallPlugin', this.selectedPluginId);
|
||||
this.$root.showDialog({
|
||||
this.$store.dispatch('showDialog', {
|
||||
type: 'success',
|
||||
iconOnly: true, autoClose: true
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue