mirror of
https://github.com/louislam/dockge.git
synced 2026-05-21 22:12:17 +00:00
Add support for extra info: URLs (#182)
* Always show Down button * Add URL and improve ArrayInput handling * Minor
This commit is contained in:
@@ -49,8 +49,7 @@ export default {
|
||||
array() {
|
||||
// Create the array if not exists, it should be safe.
|
||||
if (!this.service[this.name]) {
|
||||
// eslint-disable-next-line vue/no-side-effects-in-computed-properties
|
||||
this.service[this.name] = [];
|
||||
return [];
|
||||
}
|
||||
return this.service[this.name];
|
||||
},
|
||||
@@ -89,6 +88,10 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
addField() {
|
||||
// Create the array if not exists.
|
||||
if (!this.service[this.name]) {
|
||||
this.service[this.name] = [];
|
||||
}
|
||||
this.array.push("");
|
||||
},
|
||||
remove(index) {
|
||||
|
||||
Reference in New Issue
Block a user