Skip to content

Commit

Permalink
fixup! fixup! transfer ownership of a form
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Hartmann <[email protected]>
  • Loading branch information
Chartman123 committed Dec 12, 2023
1 parent f2693c9 commit b0a225c
Showing 1 changed file with 7 additions and 19 deletions.
26 changes: 7 additions & 19 deletions src/components/SidebarTabs/TransferOwnership.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,13 @@
{{ t('forms', 'Transfer ownership') }}
</NcButton>
<NcDialog :open.sync="showModal"
name="Transfer ownership"
:name="t('forms', 'Transfer ownership')"
:out-transition="true"
@close="closeModal">
<div class="modal-content">
<div class="modal-content__section">
<p class="modal-content__text">
{{ t('forms', 'You\'re going to transfer the ownership of {name} to another account. Please select the account to which you want to transfer ownership.',{name:form.title}) }}
</p>
<!-- eslint-disable-next-line vue/no-v-html -->
<p class="modal-content__text" v-html="t('forms', 'You\'re going to transfer the ownership of <strong>{name}</strong> to another account. Please select the account to which you want to transfer ownership.', { name: form.title })" />
<NcSelect v-model="selected"
class="modal-content__select"
:reset-focus-on-options-change="false"
Expand All @@ -52,13 +51,12 @@
</NcSelect>
</div>
<div class="modal-content__section">
<p class="modal-content__text">
{{ t('forms', 'Type ') }} <strong> {{ confirmationString }} </strong>{{ t('forms', ' to confirm') }}
</p>
<!-- eslint-disable-next-line vue/no-v-html -->
<p class="modal-content__text" v-html="t('forms', 'Type <strong>{confirmationString}</strong> to confirm.', { confirmationString })" />
<NcTextField :value.sync="confirmationInput"
:success="confirmationInput === confirmationString" />
</div>
<p><strong> {{ t('forms','This can not be undone') }}</strong></p>
<p><strong>{{ t('forms','This can not be undone.') }}</strong></p>
</div>
<template #actions>
<NcButton :disabled="!canTransfer" type="error" @click="onOwnershipTransfer">
Expand Down Expand Up @@ -170,7 +168,7 @@ export default {
}
}
&__select{
&__select{
width:100% ;
}
Expand All @@ -179,19 +177,9 @@ export default {
margin-bottom: 10px;
}
&__heading{
text-align: start;
margin-bottom: 15px;
}
&__section{
text-align: start;
margin-bottom: 10px;
}
&__user {
display: flex;
align-items: center;
}
}
</style>

0 comments on commit b0a225c

Please sign in to comment.