Skip to content
Snippets Groups Projects

New: Delete button

Merged Kimia Beheshti requested to merge Topic/1036-userManagement into Product/883-userManagement
6 unresolved threads

coscine/issues#1036

Edited by Kimia Beheshti

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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';
  • 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,
  • 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');
  • 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>
  • 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;
  • 1 <template>
    2 <div>
  • Kimia Beheshti added 1 commit

    added 1 commit

    Compare with previous version

  • David Schimmel mentioned in commit fffb749f

    mentioned in commit fffb749f

  • Please register or sign in to reply
    Loading