|
15 | 15 | id="instructions-button"
|
16 | 16 | variant="quiet"
|
17 | 17 | type="progressive"
|
18 |
| - @click.native="showInstructionsDialog" |
| 18 | + @click.native="instructionsDialog = true" |
19 | 19 | >
|
20 | 20 | <template #prefix>
|
21 | 21 | <icon type="info-outlined" size="medium" color="inherit"/>
|
|
24 | 24 | </wikit-button>
|
25 | 25 | </header>
|
26 | 26 |
|
27 |
| - <wikit-dialog id="instructions-dialog" |
| 27 | + <cdx-dialog id="instructions-dialog" |
28 | 28 | :title="$i18n('instructions-dialog-title')"
|
29 |
| - ref="inctructionsDialog" |
30 |
| - :actions="[{ |
| 29 | + v-model:open="instructionsDialog" |
| 30 | + :primary-action="{ |
31 | 31 | label: $i18n('confirm-dialog-button'),
|
32 | 32 | namespace: 'instructions-confirm'
|
33 |
| - }]" |
34 |
| - @action="(_, dialog) => dialog.hide()" |
35 |
| - dismiss-button |
| 33 | + }" |
| 34 | + @primary="() => instructionsDialog = false" |
| 35 | + close-button-label="X" |
36 | 36 | >
|
37 | 37 | <p>{{ $i18n('instructions-dialog-message-upload-info-description') }}</p>
|
38 | 38 | <p>{{ $i18n('instructions-dialog-message-intro') }}</p>
|
|
44 | 44 | <li>{{ $i18n('instructions-dialog-message-instruction-none') }}</li>
|
45 | 45 | <li>{{ $i18n('instructions-dialog-message-instruction-pending') }}</li>
|
46 | 46 | </ul>
|
47 |
| - </wikit-dialog> |
| 47 | + </cdx-dialog> |
48 | 48 | <p id="about-description" >
|
49 | 49 | {{ $i18n('results-page-description') }}
|
50 | 50 | </p>
|
|
185 | 185 | disableConfirmation: boolean,
|
186 | 186 | pageDirection: string,
|
187 | 187 | requestError: boolean,
|
188 |
| - lastSubmitted: string |
| 188 | + lastSubmitted: string, |
| 189 | + instructionsDialog: boolean |
189 | 190 | }
|
190 | 191 |
|
191 | 192 | export default defineComponent({
|
|
198 | 199 | WikitButton,
|
199 | 200 | WikitDialog,
|
200 | 201 | Checkbox,
|
201 |
| - Message |
| 202 | + Message, |
| 203 | + CdxDialog |
202 | 204 | },
|
203 | 205 | props: {
|
204 | 206 | user: {
|
|
256 | 258 | disableConfirmation: false,
|
257 | 259 | pageDirection: 'ltr',
|
258 | 260 | requestError: false,
|
259 |
| - lastSubmitted: '' |
| 261 | + lastSubmitted: '', |
| 262 | + instructionsDialog: false |
260 | 263 | }
|
261 | 264 | },
|
262 | 265 | methods: {
|
263 |
| - showInstructionsDialog() { |
264 |
| - /* eslint-disable-next-line @typescript-eslint/no-explicit-any */ |
265 |
| - const dialog = this.$refs.inctructionsDialog as any; |
266 |
| - dialog.show(); |
267 |
| - }, |
268 | 266 | addLabels(mismatches: Mismatch[]): LabelledMismatch[]{
|
269 | 267 | // The following callback maps existing mismatches to extended
|
270 | 268 | // mismatch objects which include labels, by looking up any
|
|
0 commit comments