New: Delete button
6 unresolved threads
6 unresolved threads
coscine/issues#1036
Edited by Kimia Beheshti
Merge request reports
Activity
- src/components/Buttons/delete.vue 0 → 100644
1 <template> 2 <div> 3 <b-button class="coscine_delete" @click="deleteItem">{{ btnText }}</b-button> 4 </div> 5 </template> 6 7 <script lang="ts"> 8 import Vue from 'vue'; 9 import BootstrapVue from 'bootstrap-vue'; changed this line in version 5 of the diff
- src/components/Buttons/delete.vue 0 → 100644
1 <template> 2 <div> 3 <b-button class="coscine_delete" @click="deleteItem">{{ btnText }}</b-button> 4 </div> 5 </template> 6 7 <script lang="ts"> 8 import Vue from 'vue'; 9 import BootstrapVue from 'bootstrap-vue'; 10 Vue.use(BootstrapVue); 11 12 export default Vue.extend({ 13 name: 'CoscineDelete', 14 props: { 15 btnText: { 16 default: null, changed this line in version 5 of the diff
- src/components/Buttons/delete.vue 0 → 100644
7 <script lang="ts"> 8 import Vue from 'vue'; 9 import BootstrapVue from 'bootstrap-vue'; 10 Vue.use(BootstrapVue); 11 12 export default Vue.extend({ 13 name: 'CoscineDelete', 14 props: { 15 btnText: { 16 default: null, 17 type: String, 18 }, 19 }, 20 methods: { 21 deleteItem() { 22 this.$emit('delete'); changed this line in version 5 of the diff
- src/components/Buttons/delete.vue 0 → 100644
12 export default Vue.extend({ 13 name: 'CoscineDelete', 14 props: { 15 btnText: { 16 default: null, 17 type: String, 18 }, 19 }, 20 methods: { 21 deleteItem() { 22 this.$emit('delete'); 23 }, 24 }, 25 }); 26 </script> 27 <style> changed this line in version 5 of the diff
- src/components/Buttons/delete.vue 0 → 100644
16 default: null, 17 type: String, 18 }, 19 }, 20 methods: { 21 deleteItem() { 22 this.$emit('delete'); 23 }, 24 }, 25 }); 26 </script> 27 <style> 28 .coscine_delete:hover { 29 background-color: #9b0517; 30 border-color: #8e0515; 31 color: #ffffff; changed this line in version 5 of the diff
- src/components/Buttons/delete.vue 0 → 100644
1 <template> 2 <div> At the moment is just one element(button) in template, but if we add more elements later, it would be error: "Error: Component template should contain exactly one root element...." so I think is better to always put all lines in - div - inside the Template
Edited by Kimia Beheshtichanged this line in version 5 of the diff
mentioned in commit fffb749f
Please register or sign in to reply