Skip to content

Commit

Permalink
add systemd button to monit and services
Browse files Browse the repository at this point in the history
  • Loading branch information
satkunas committed Dec 9, 2022
1 parent 4449474 commit 06064bc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
<h4 class="mb-0">{{ $t('Event Loggers') }}</h4>
</b-card-header>
<div class="card-body">
<div
class="alert alert-warning"
>{{ $t(`Creating, modifying or deleting an event logger entry requires to restart the packetfence-mariadb service using the following command: systemctl restart packetfence-mariadb`) }}</div>
<base-search :use-search="useSearch">
<b-dropdown :text="$t('New Event Logger')" variant="outline-primary">
<b-dropdown-item v-for="({ text, value }) in typeOptions" :key="value"
Expand All @@ -16,7 +13,6 @@
<base-button-system-service
service="packetfence-mariadb" restart start stop
class="ml-1" />
<base-button-systemd-update class="ml-1" />
</base-search>
<b-table ref="tableRef"
:busy="isLoading"
Expand Down Expand Up @@ -103,7 +99,6 @@ import {
BaseButtonConfirm,
BaseButtonHelp,
BaseButtonSystemService,
BaseButtonSystemdUpdate,
BaseSearch,
BaseSearchInputColumns,
BaseTableEmpty
Expand All @@ -113,7 +108,6 @@ const components = {
BaseButtonConfirm,
BaseButtonHelp,
BaseButtonSystemService,
BaseButtonSystemdUpdate,
BaseSearch,
BaseSearchInputColumns,
BaseTableEmpty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@
<span v-html="$t('Creating or modifying the monit configuration requires to restart the monit service.')"></span>
</p>
<base-button-system-service service="monit" restart start stop
:disabled="isLoading" class="mr-1" size="sm"/>
:disabled="isLoading" class="mr-1" size="sm" />
<base-button-systemd-update class="ml-1" size="sm" />
</b-alert>
</template>
<script>
import {
BaseButtonSystemService
BaseButtonSystemService,
BaseButtonSystemdUpdate,
} from '@/components/new/'
const components = {
BaseButtonSystemService
BaseButtonSystemService,
BaseButtonSystemdUpdate,
}
const props = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
<h4 class="d-inline mb-0" v-t="'Services'"></h4>
</b-card-header>
<div class="card-body">
<div class="d-flex mb-3">
<base-button-systemd-update class="ml-1" />
</div>
<b-table ref="tableRef"
:busy="isLoading"
:hover="serviceItems.length > 0"
Expand Down Expand Up @@ -95,13 +98,15 @@

<script>
import {
BaseButtonSystemdUpdate,
BaseService,
BaseTableEmpty
} from '@/components/new/'
import BaseButtonBulkActions from './BaseButtonBulkActions'
const components = {
BaseButtonBulkActions,
BaseButtonSystemdUpdate,
BaseService,
BaseTableEmpty
}
Expand Down

0 comments on commit 06064bc

Please sign in to comment.