Skip to content
This repository was archived by the owner on Feb 24, 2021. It is now read-only.

Commit 6ffc26c

Browse files
authored
fix(ui): vuetify deprecation .native (#797)
1 parent 545102b commit 6ffc26c

File tree

4 files changed

+18
-21
lines changed

4 files changed

+18
-21
lines changed

src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
v-model="snackbar"
8484
>
8585
{{ snackbarText }}
86-
<v-btn text @click.native="snackbar = false">Close</v-btn>
86+
<v-btn text @click="snackbar = false">Close</v-btn>
8787
</v-snackbar>
8888
</v-app>
8989
</template>

src/components/Confirm.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<v-card-text v-show="!!message" class="pa-4">{{ message }}</v-card-text>
1313
<v-card-actions class="pt-0">
1414
<v-spacer></v-spacer>
15-
<v-btn @click.native="agree" text :color="options.color">Yes</v-btn>
16-
<v-btn @click.native="cancel" text>Cancel</v-btn>
15+
<v-btn @click="agree" text :color="options.color">Yes</v-btn>
16+
<v-btn @click="cancel" text>Cancel</v-btn>
1717
</v-card-actions>
1818
</v-card>
1919
</v-dialog>

src/components/ControlPanel.vue

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@
4747
</v-flex>
4848

4949
<v-flex xs12 sm6 md3 align-self-center>
50-
<v-btn icon @click.native="importConfiguration">
50+
<v-btn icon @click="importConfiguration">
5151
<v-tooltip bottom>
5252
<template v-slot:activator="{ on }">
5353
<v-icon dark color="primary" v-on="on">file_upload</v-icon>
5454
</template>
5555
<span>Import nodes.json Configuration</span>
5656
</v-tooltip>
5757
</v-btn>
58-
<v-btn icon @click.native="exportConfiguration">
58+
<v-btn icon @click="exportConfiguration">
5959
<v-tooltip bottom>
6060
<template v-slot:activator="{ on }">
6161
<v-icon dark color="primary" v-on="on"
@@ -286,25 +286,22 @@
286286
<v-btn
287287
color="blue darken-1"
288288
text
289-
@click.native="storeDevices(false)"
289+
@click="storeDevices(false)"
290290
>Store</v-btn
291291
>
292292
<v-btn
293293
color="red darken-1"
294294
text
295-
@click.native="storeDevices(true)"
295+
@click="storeDevices(true)"
296296
>Remove Store</v-btn
297297
>
298-
<v-btn
299-
color="green darken-1"
300-
text
301-
@click.native="rediscoverNode"
298+
<v-btn color="green darken-1" text @click="rediscoverNode"
302299
>Rediscover Node</v-btn
303300
>
304301
<v-btn
305302
color="yellow darken-1"
306303
text
307-
@click.native="disableDiscovery"
304+
@click="disableDiscovery"
308305
>Disable Discovery</v-btn
309306
>
310307

@@ -344,31 +341,31 @@
344341
color="blue darken-1"
345342
:disabled="errorDevice"
346343
text
347-
@click.native="addDevice"
344+
@click="addDevice"
348345
>Add</v-btn
349346
>
350347
<v-btn
351348
v-if="selectedDevice"
352349
color="blue darken-1"
353350
:disabled="errorDevice"
354351
text
355-
@click.native="updateDevice"
352+
@click="updateDevice"
356353
>Update</v-btn
357354
>
358355
<v-btn
359356
v-if="selectedDevice"
360357
color="green darken-1"
361358
:disabled="errorDevice"
362359
text
363-
@click.native="rediscoverDevice"
360+
@click="rediscoverDevice"
364361
>Rediscover</v-btn
365362
>
366363
<v-btn
367364
v-if="selectedDevice"
368365
color="red darken-1"
369366
:disabled="errorDevice"
370367
text
371-
@click.native="deleteDevice"
368+
@click="deleteDevice"
372369
>Delete</v-btn
373370
>
374371
<v-textarea
@@ -454,15 +451,15 @@
454451
<v-btn
455452
rounded
456453
color="primary"
457-
@click.native="addAssociation"
454+
@click="addAssociation"
458455
dark
459456
class="mb-2"
460457
>Add</v-btn
461458
>
462459
<v-btn
463460
rounded
464461
color="primary"
465-
@click.native="removeAssociation"
462+
@click="removeAssociation"
466463
dark
467464
class="mb-2"
468465
>Remove</v-btn
@@ -477,11 +474,11 @@
477474
<v-container grid-list-md>
478475
<v-layout wrap>
479476
<v-flex xs12>
480-
<v-btn text @click.native="importScenes">
477+
<v-btn text @click="importScenes">
481478
Import
482479
<v-icon right dark color="primary">file_upload</v-icon>
483480
</v-btn>
484-
<v-btn text @click.native="exportScenes">
481+
<v-btn text @click="exportScenes">
485482
Export
486483
<v-icon right dark color="primary">file_download</v-icon>
487484
</v-btn>

src/components/custom/file-input.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
v-model="filename"
77
:label="label.toUpperCase()"
88
:required="required"
9-
@click.native="onFocus"
9+
@click="onFocus"
1010
:rules="rules"
1111
:disabled="disabled"
1212
ref="fileTextField"

0 commit comments

Comments
 (0)