|
47 | 47 | </p> |
48 | 48 | </section> |
49 | 49 | <section id="error-section" v-if="requestError"> |
50 | | - <Message type="error" class="generic-error">{{ $i18n('server-error') }}</Message> |
| 50 | + <cdx-message type="error" class="generic-error">{{ $i18n('server-error') }}</cdx-message> |
51 | 51 | </section> |
52 | 52 | <section id="message-section"> |
53 | | - <Message type="notice" v-if="notFoundItemIds.length"> |
| 53 | + <cdx-message type="notice" v-if="notFoundItemIds.length"> |
54 | 54 | <span>{{ $i18n('no-mismatches-found-message') }}</span> |
55 | 55 | <span class="message-link" v-for="item_id in notFoundItemIds" :key="item_id"> |
56 | 56 | <wikit-link |
57 | 57 | :href="`https://www.wikidata.org/wiki/${String(item_id)}`" target="_blank"> |
58 | 58 | {{labels[item_id]}} ({{item_id}}) |
59 | 59 | </wikit-link> |
60 | 60 | </span> |
61 | | - </Message> |
| 61 | + </cdx-message> |
62 | 62 | <!-- The Results page without item_ids is used by RandomizeController. --> |
63 | | - <Message type="notice" v-if="item_ids.length === 0"> |
| 63 | + <cdx-message type="notice" v-if="item_ids.length === 0"> |
64 | 64 | <span>{{ $i18n('no-mismatches-available-for-review') }}</span> |
65 | | - </Message> |
66 | | - <Message type="warning" v-if="!user"> |
| 65 | + </cdx-message> |
| 66 | + <cdx-message type="warning" v-if="!user"> |
67 | 67 | <span v-i18n-html:log-in-message="['/auth/login']"></span> |
68 | | - </Message> |
| 68 | + </cdx-message> |
69 | 69 | </section> |
70 | 70 | <section id="results" v-if="Object.keys(results).length"> |
71 | 71 | <section class="item-mismatches" |
|
83 | 83 | @decision="recordDecision" |
84 | 84 | /> |
85 | 85 | <footer class="mismatches-form-footer"> |
86 | | - <Message class="form-success-message" type="success" v-if="lastSubmitted === item"> |
| 86 | + <cdx-message class="form-success-message" type="success" v-if="lastSubmitted === item"> |
87 | 87 | <span>{{ $i18n('changes-submitted-message') }}</span> |
88 | 88 | <span class="message-link"> |
89 | 89 | <wikit-link :href="`https://www.wikidata.org/wiki/${String(item)}`" target="_blank"> |
90 | 90 | {{labels[item]}} ({{item}}) |
91 | 91 | </wikit-link> |
92 | 92 | </span> |
93 | | - </Message> |
| 93 | + </cdx-message> |
94 | 94 | <div class="form-buttons"> |
95 | 95 | <cdx-button |
96 | 96 | :disabled="!user" |
|
138 | 138 | import { Head as InertiaHead } from '@inertiajs/inertia-vue3'; |
139 | 139 | import { |
140 | 140 | Link as WikitLink, |
141 | | - Checkbox, |
142 | | - Message } from '@wmde/wikit-vue-components'; |
| 141 | + Checkbox } from '@wmde/wikit-vue-components'; |
143 | 142 |
|
144 | | - import { CdxButton, CdxIcon, CdxDialog } from "@wikimedia/codex"; |
| 143 | + import { CdxButton, CdxIcon, CdxDialog, CdxMessage } from "@wikimedia/codex"; |
145 | 144 | import { cdxIconInfo, cdxIconArrowPrevious } from '@wikimedia/codex-icons'; |
146 | 145 |
|
147 | 146 | import LoadingOverlay from '../Components/LoadingOverlay.vue'; |
|
193 | 192 | MismatchesTable, |
194 | 193 | WikitLink, |
195 | 194 | Checkbox, |
196 | | - Message, |
197 | 195 | CdxDialog, |
198 | 196 | CdxButton, |
199 | | - CdxIcon |
| 197 | + CdxIcon, |
| 198 | + CdxMessage |
200 | 199 | }, |
201 | 200 | setup() { |
202 | 201 | return { |
|
0 commit comments