Skip to content

Commit 7f6d446

Browse files
author
Cihad Tekin
committed
[push] guide button and data-test-id
1 parent a294fc4 commit 7f6d446

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
<script type="text/x-template" id="push-notification">
22
<div v-bind:class="[componentId]">
3-
<cly-header>
4-
<template v-slot:header-left>
5-
<h2> {{i18n('push-notification.title')}} </h2>
6-
<cly-tooltip-icon :tooltip="i18n('push-notification.description')" icon="ion ion-help-circled" class="bu-ml-2"> </cly-tooltip-icon>
7-
</template>
3+
<cly-header
4+
:title="i18n('push-notification.title')"
5+
:tooltip="{description: i18n('push-notification.description')}"
6+
>
87
<template v-slot:header-right v-if="canUserCreate">
98
<div class="bu-level-item">
10-
<el-button @click="onCreatePushNotification" type="success" size="small" icon="el-icon-circle-plus">{{i18n('push-notification.create-button')}}</el-button>
9+
<el-button @click="onCreatePushNotification" type="success" size="small" icon="el-icon-circle-plus" data-test-id="create-new-messsage-button">{{i18n('push-notification.create-button')}}</el-button>
1110
</div>
1211
</template>
1312
<template v-slot:header-tabs>
14-
<cly-dynamic-tabs v-model="selectedPushNotificationTab" skin="secondary" :tabs="pushNotificationTabs">
13+
<cly-dynamic-tabs class="push-notification__main-tabs" v-model="selectedPushNotificationTab" skin="secondary" :tabs="pushNotificationTabs">
1514
<template v-slot:tables="scope">
1615
<span>{{scope.tab.title}}</span>
1716
</template>
1817
</cly-dynamic-tabs>
1918
</template>
2019
</cly-header>
21-
<push-notification-drawer @onClose="onDrawerClose" @save="onSave" :controls="drawers.pushNotificationDrawer" :type="selectedPushNotificationTab" :userCommand="userCommand.type" :id="userCommand.pushNotificationId" :isOpened="isDrawerOpen"></push-notification-drawer>
20+
<push-notification-drawer ref="pushNotificationDrawer" @onClose="onDrawerClose" @save="onSave" :controls="drawers.pushNotificationDrawer" :type="selectedPushNotificationTab" :userCommand="userCommand.type" :id="userCommand.pushNotificationId" :isOpened="isDrawerOpen"></push-notification-drawer>
2221
</div>
2322
</script>

0 commit comments

Comments
 (0)