Skip to content

Commit

Permalink
Optimize confirm experience (#99)
Browse files Browse the repository at this point in the history
Co-authored-by: AceDataCloud <[email protected]>
  • Loading branch information
Germey and AceDataCloud authored Aug 9, 2024
1 parent 5039da7 commit e4c9e0b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 141 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix the confirm flow",
"packageName": "@acedatacloud/nexior",
"email": "[email protected]",
"dependentChangeType": "patch"
}
85 changes: 0 additions & 85 deletions src/assets/mds/policy.md

This file was deleted.

17 changes: 8 additions & 9 deletions src/components/application/Confirm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@
<div class="policy">
<el-checkbox v-model="checked" size="large" class="policy-checkbox" />
<span class="policy-title"> {{ $t('application.message.readPolicy') }} </span>
<span class="policy-title highlight" @click="showPolicy = true">
&nbsp;{{ $t('application.message.policy') }}</span
>
<application-policy v-model.visible="showPolicy" />
<a class="policy-title highlight" target="_blank" :href="getBaseUrlPlatform() + '/terms'">
&nbsp;{{ $t('application.message.policy') }}
</a>
</div>
<el-button round type="primary" @click="onApply">{{ $t('common.button.apply') }}</el-button>
</div>
Expand All @@ -33,7 +32,7 @@
import { defineComponent } from 'vue';
import { ElDialog, ElDescriptions, ElDescriptionsItem, ElDivider, ElCheckbox, ElButton, ElMessage } from 'element-plus';
import { IService } from '@/models';
import ApplicationPolicy from './Policy.vue';
import { getBaseUrlPlatform } from '@/utils';
interface IData {
checked: boolean;
Expand All @@ -48,8 +47,7 @@ export default defineComponent({
ElDescriptionsItem,
ElDivider,
ElCheckbox,
ElButton,
ApplicationPolicy
ElButton
},
props: {
service: {
Expand All @@ -65,12 +63,12 @@ export default defineComponent({
emits: ['update:visible', 'apply'],
data(): IData {
return {
checked: false,
showPolicy: false
checked: true
};
},
watch: {},
methods: {
getBaseUrlPlatform,
onApply() {
if (!this.checked) {
ElMessage.error(this.$t('application.message.notAgreePolicy'));
Expand All @@ -97,6 +95,7 @@ export default defineComponent({
&.highlight {
color: var(--el-color-primary);
cursor: pointer;
text-decoration: none;
}
}
}
Expand Down
47 changes: 0 additions & 47 deletions src/components/application/Policy.vue

This file was deleted.

0 comments on commit e4c9e0b

Please sign in to comment.