Skip to content

Commit

Permalink
fix:change the button to new style
Browse files Browse the repository at this point in the history
Signed-off-by: greta <gretadoci@gmail.com>
  • Loading branch information
GretaD committed Aug 8, 2024
1 parent c53144e commit 9b41ad7
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/components/MdnRequest.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
{{
t('mail', 'The sender of this message has asked to be notified when you read this message.')
}}
<button :disabled="loading" @click="sendMdn">
{{ t('mail', 'Notify the sender') }}
</button>
<div class="notify-button">
<NcButton type="secondary" :disabled="loading" @click="sendMdn">
{{ t('mail', 'Notify the sender') }}
</NcButton>
</div>
</div>
<div v-else-if="mdnSent" class="mail-message-has-mdn-request">
{{
Expand All @@ -22,9 +24,13 @@
import logger from '../logger.js'
import { sendMdn } from '../service/MessageService.js'
import { showError } from '@nextcloud/dialogs'
import { NcButton } from '@nextcloud/vue'

export default {
name: 'MdnRequest',
components: {
NcButton,
},
props: {
message: {
required: true,
Expand Down Expand Up @@ -65,4 +71,7 @@ export default {
.mail-message-has-mdn-request {
white-space: normal;
}
.notify-button {
display: inline-block;
}
</style>

0 comments on commit 9b41ad7

Please sign in to comment.