File tree 1 file changed +7
-8
lines changed
plugins/push/frontend/public/templates
1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 1
1
< script type ="text/x-template " id ="push-notification ">
2
2
< 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
+ >
8
7
< template v-slot :header-right v-if = "canUserCreate" >
9
8
< 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 >
11
10
</ div >
12
11
</ template >
13
12
< 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" >
15
14
< template v-slot :tables = "scope" >
16
15
< span > { { scope. tab . title } } </ span >
17
16
</ template >
18
17
</ cly-dynamic-tabs >
19
18
< / t e m p l a t e >
20
19
</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 >
22
21
< / d i v >
23
22
</ script >
You can’t perform that action at this time.
0 commit comments