Fixed PR commentaries [SCI-10717]

This commit is contained in:
Klemen Benedicic 2024-05-24 13:26:58 +02:00
parent a42a8a535a
commit c304277712
5 changed files with 60 additions and 60 deletions

View file

@ -46,13 +46,13 @@
</template>
</GeneralDropdown>
<div class="flex items-center gap-2.5">
<button class="btn btn-secondary btn-sm"
<button class="btn btn-secondary btn-sm"
:class="{'active': activeGroup == 'ExperimentsComponent'}"
@click="setActiveGroup('ExperimentsComponent')"
:data-e2e="'e2e-BT-globalSearch-experiments'">
{{ i18n.t('search.index.experiments') }}
</button>
<button class="btn btn-secondary btn-sm"
<button class="btn btn-secondary btn-sm"
:class="{'active': activeGroup == 'MyModulesComponent'}"
@click="setActiveGroup('MyModulesComponent')"
:data-e2e="'e2e-BT-globalSearch-tasks'">

View file

@ -48,7 +48,7 @@ export default {
mixins: [searchMixin],
data() {
return {
group: 'module_protocols',
group: 'module_protocols'
};
}
};

View file

@ -119,7 +119,7 @@ export default {
close: '',
cancel: '',
confirm: ''
},
}
},
exportModal: {
title: '',
@ -264,7 +264,7 @@ export default {
close: 'e2e-BT-deleteInventoryModal-close',
cancel: 'e2e-BT-deleteInventoryModal-cancel',
confirm: 'e2e-BT-deleteInventoryModal-delete'
},
};
this.deleteModal.title = this.i18n.t('repositories.index.modal_delete.title_html', { name: repository.name });
this.deleteModal.description = `
<p data-e2e="e2e-TX-deleteInventoryModal-info">${this.i18n.t('repositories.index.modal_delete.message_html', { name: repository.name })}</p>

View file

@ -17,64 +17,64 @@
</div>
</div>
</template>
<script>
export default {
name: 'confirmationModal',
props: {
title: {
type: String,
required: true
},
description: {
type: String,
required: true
},
cancelText: {
type: String
},
cancelClass: {
type: String,
default: 'btn btn-secondary'
},
confirmText: {
type: String
},
confirmClass: {
type: String,
default: 'btn btn-primary'
},
e2eAttributes: {
type: Object,
default: {}
}
<script>
export default {
name: 'confirmationModal',
props: {
title: {
type: String,
required: true
},
mounted() {
$(this.$refs.modal).on('hidden.bs.modal', () => {
this.resolvePromise(false)
description: {
type: String,
required: true
},
cancelText: {
type: String
},
cancelClass: {
type: String,
default: 'btn btn-secondary'
},
confirmText: {
type: String
},
confirmClass: {
type: String,
default: 'btn btn-primary'
},
e2eAttributes: {
type: Object,
default: () => ({})
}
},
mounted() {
$(this.$refs.modal).on('hidden.bs.modal', () => {
this.resolvePromise(false);
});
},
data() {
return {
resolvePromise: null,
rejectPromise: null
}
},
methods: {
show: function() {
$(this.$refs.modal).modal('show');
return new Promise((resolve, reject) => {
this.resolvePromise = resolve
this.rejectPromise = reject
})
},
data() {
return {
resolvePromise: null,
rejectPromise: null
}
confirm() {
this.resolvePromise(true)
$(this.$refs.modal).modal('hide');
},
methods: {
show: function() {
$(this.$refs.modal).modal('show');
return new Promise((resolve, reject) => {
this.resolvePromise = resolve
this.rejectPromise = reject
})
},
confirm() {
this.resolvePromise(true)
$(this.$refs.modal).modal('hide');
},
cancel() {
this.resolvePromise(false)
$(this.$refs.modal).modal('hide');
}
cancel() {
this.resolvePromise(false)
$(this.$refs.modal).modal('hide');
}
}
};
</script>

View file

@ -84,7 +84,7 @@ export default {
},
data() {
return {
isOpen: false,
isOpen: false
};
},
directives: {