feat: Add automation route (#3410)

This commit is contained in:
Muhsin Keloth
2021-11-18 14:09:55 +05:30
committed by GitHub
parent b81a9f2010
commit c2b4991fd8
6 changed files with 59 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
<template>
<div class="column content-box">
<woot-button
color-scheme="success"
class-names="button--fixed-right-top"
icon="ion-android-add-circle"
>
{{ $t('AUTOMATION.HEADER_BTN_TXT') }}
</woot-button>
</div>
</template>
<script>

View File

@@ -0,0 +1,30 @@
import SettingsContent from '../Wrapper';
import Automation from './Index';
import { frontendURL } from '../../../../helper/URLHelper';
export default {
routes: [
{
path: frontendURL('accounts/:accountId/settings/automation'),
component: SettingsContent,
props: {
headerTitle: 'AUTOMATION.HEADER',
icon: 'ion-wrench',
showNewButton: false,
},
children: [
{
path: '',
name: 'automation_wrapper',
redirect: 'list',
},
{
path: 'list',
name: 'automation_list',
component: Automation,
roles: ['administrator'],
},
],
},
],
};