Browse Source
Merge pull request #9910 from nextcloud/bug/7584/confirmation-page-focus
Merge pull request #9910 from nextcloud/bug/7584/confirmation-page-focus
fix(NewGroupConversation) - refactoring & focus on Confirmation pagepull/9958/head
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 70 additions and 126 deletions
-
115src/components/LeftSidebar/NewGroupConversation/Confirmation/Confirmation.vue
-
78src/components/LeftSidebar/NewGroupConversation/NewGroupConversation.vue
-
3src/components/LeftSidebar/NewGroupConversation/SetContacts/SetContacts.vue
@ -1,115 +0,0 @@ |
|||
<!-- |
|||
- @copyright Copyright (c) 2019 Marco Ambrosini <marcoambrosini@icloud.com> |
|||
- |
|||
- @author Marco Ambrosini <marcoambrosini@icloud.com> |
|||
- |
|||
- @license GNU AGPL version 3 or any later version |
|||
- |
|||
- This program is free software: you can redistribute it and/or modify |
|||
- it under the terms of the GNU Affero General Public License as |
|||
- published by the Free Software Foundation, either version 3 of the |
|||
- License, or (at your option) any later version. |
|||
- |
|||
- This program is distributed in the hope that it will be useful, |
|||
- but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
- GNU Affero General Public License for more details. |
|||
- |
|||
- You should have received a copy of the GNU Affero General Public License |
|||
- along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
--> |
|||
|
|||
<template> |
|||
<div class="confirmation"> |
|||
<template v-if="isLoading && !error"> |
|||
<template v-if="!success"> |
|||
<div class="icon-loading confirmation__icon" /> |
|||
<p class="confirmation__warning"> |
|||
{{ t('spreed', 'Creating your conversation') }} |
|||
</p> |
|||
</template> |
|||
<template v-if="success && isPublic"> |
|||
<div class="icon-checkmark confirmation__icon" /> |
|||
<p class="confirmation__warning"> |
|||
{{ t('spreed', 'All set') }} |
|||
</p> |
|||
<NcButton id="copy-link" |
|||
type="secondary" |
|||
class="confirmation__copy-link" |
|||
@click="onClickCopyLink"> |
|||
{{ t('spreed', 'Copy conversation link') }} |
|||
</NcButton> |
|||
</template> |
|||
</template> |
|||
<template v-else> |
|||
<div class="icon-error confirmation__icon" /> |
|||
<p class="confirmation__warning"> |
|||
{{ t('spreed', 'Error while creating the conversation') }} |
|||
</p> |
|||
</template> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' |
|||
|
|||
import { copyConversationLinkToClipboard } from '../../../../services/urlService.js' |
|||
|
|||
export default { |
|||
name: 'Confirmation', |
|||
components: { |
|||
NcButton, |
|||
}, |
|||
props: { |
|||
token: { |
|||
type: String, |
|||
required: true, |
|||
}, |
|||
conversationName: { |
|||
type: String, |
|||
required: true, |
|||
}, |
|||
isLoading: { |
|||
type: Boolean, |
|||
required: true, |
|||
}, |
|||
success: { |
|||
type: Boolean, |
|||
required: true, |
|||
}, |
|||
error: { |
|||
type: Boolean, |
|||
required: true, |
|||
}, |
|||
isPublic: { |
|||
type: Boolean, |
|||
required: true, |
|||
}, |
|||
}, |
|||
|
|||
methods: { |
|||
onClickCopyLink() { |
|||
copyConversationLinkToClipboard(this.token) |
|||
}, |
|||
}, |
|||
|
|||
} |
|||
|
|||
</script> |
|||
|
|||
<style lang="scss" scoped> |
|||
.confirmation { |
|||
&__icon { |
|||
padding-top: 80px; |
|||
} |
|||
|
|||
&__warning { |
|||
margin-top: 10px; |
|||
text-align: center; |
|||
} |
|||
|
|||
&__copy-link { |
|||
margin: 50px auto 0 auto; |
|||
} |
|||
} |
|||
</style> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue