Skip to content

Commit 3aef130

Browse files
committed
improvements
1 parent 3719626 commit 3aef130

File tree

1 file changed

+7
-106
lines changed

1 file changed

+7
-106
lines changed

web_src/js/components/projects/ProjectWorkflow.vue

Lines changed: 7 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ onUnmounted(() => {
730730
<!-- Cancel Button -->
731731
<button
732732
v-if="showCancelButton"
733-
class="btn btn-outline-secondary"
733+
class="ui small button"
734734
@click="toggleEditMode"
735735
>
736736
<i class="times icon"/>
@@ -739,7 +739,7 @@ onUnmounted(() => {
739739

740740
<!-- Save Button -->
741741
<button
742-
class="btn btn-primary"
742+
class="ui small primary button"
743743
@click="saveWorkflow"
744744
:disabled="store.saving"
745745
>
@@ -750,7 +750,7 @@ onUnmounted(() => {
750750
<!-- Delete Button (only for configured workflows) -->
751751
<button
752752
v-if="store.selectedWorkflow && store.selectedWorkflow.id > 0"
753-
class="btn btn-danger"
753+
class="ui small red button"
754754
@click="deleteWorkflow"
755755
>
756756
<i class="trash icon"/>
@@ -762,7 +762,7 @@ onUnmounted(() => {
762762
<template v-else-if="store.selectedWorkflow && store.selectedWorkflow.id > 0">
763763
<!-- Edit Button -->
764764
<button
765-
class="btn btn-primary"
765+
class="ui small primary button"
766766
@click="toggleEditMode"
767767
>
768768
<i class="edit icon"/>
@@ -771,8 +771,8 @@ onUnmounted(() => {
771771

772772
<!-- Enable/Disable Button -->
773773
<button
774-
class="btn"
775-
:class="store.selectedWorkflow.enabled ? 'btn-outline-danger' : 'btn-success'"
774+
class="ui small button"
775+
:class="store.selectedWorkflow.enabled ? 'basic red' : 'green'"
776776
@click="toggleWorkflowStatus"
777777
>
778778
<i :class="store.selectedWorkflow.enabled ? 'pause icon' : 'play icon'"/>
@@ -781,7 +781,7 @@ onUnmounted(() => {
781781

782782
<!-- Clone Button -->
783783
<button
784-
class="btn btn-outline-secondary"
784+
class="ui small button"
785785
@click="cloneWorkflow(store.selectedWorkflow)"
786786
title="Clone this workflow"
787787
>
@@ -1426,105 +1426,6 @@ onUnmounted(() => {
14261426
margin-left: -1.5em;
14271427
}
14281428
1429-
/* Button styles to replace Semantic UI */
1430-
.btn {
1431-
display: inline-block;
1432-
padding: 0.375rem 0.75rem;
1433-
margin-bottom: 0;
1434-
font-size: 1rem;
1435-
font-weight: 400;
1436-
line-height: 1.5;
1437-
color: #212529;
1438-
text-align: center;
1439-
text-decoration: none;
1440-
vertical-align: middle;
1441-
cursor: pointer;
1442-
background-color: transparent;
1443-
border: 1px solid transparent;
1444-
border-radius: 0.375rem;
1445-
transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
1446-
}
1447-
1448-
.btn:hover {
1449-
color: #212529;
1450-
text-decoration: none;
1451-
}
1452-
1453-
.btn:focus {
1454-
outline: 0;
1455-
box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
1456-
}
1457-
1458-
.btn:disabled {
1459-
pointer-events: none;
1460-
opacity: 0.65;
1461-
}
1462-
1463-
.btn-primary {
1464-
color: #fff;
1465-
background-color: #0d6efd;
1466-
border-color: #0d6efd;
1467-
}
1468-
1469-
.btn-primary:hover {
1470-
color: #fff;
1471-
background-color: #0b5ed7;
1472-
border-color: #0a58ca;
1473-
}
1474-
1475-
.btn-primary:focus {
1476-
color: #fff;
1477-
background-color: #0b5ed7;
1478-
border-color: #0a58ca;
1479-
box-shadow: 0 0 0 0.25rem rgba(49, 132, 253, 0.5);
1480-
}
1481-
1482-
.btn-outline-secondary {
1483-
color: #6c757d;
1484-
border-color: #6c757d;
1485-
}
1486-
1487-
.btn-outline-secondary:hover {
1488-
color: #fff;
1489-
background-color: #6c757d;
1490-
border-color: #6c757d;
1491-
}
1492-
1493-
.btn-success {
1494-
color: #fff;
1495-
background-color: #198754;
1496-
border-color: #198754;
1497-
}
1498-
1499-
.btn-success:hover {
1500-
color: #fff;
1501-
background-color: #157347;
1502-
border-color: #146c43;
1503-
}
1504-
1505-
.btn-outline-danger {
1506-
color: #dc3545;
1507-
border-color: #dc3545;
1508-
}
1509-
1510-
.btn-outline-danger:hover {
1511-
color: #fff;
1512-
background-color: #dc3545;
1513-
border-color: #dc3545;
1514-
}
1515-
1516-
.btn-danger {
1517-
color: #fff;
1518-
background-color: #dc3545;
1519-
border-color: #dc3545;
1520-
}
1521-
1522-
.btn-danger:hover {
1523-
color: #fff;
1524-
background-color: #c82333;
1525-
border-color: #bd2130;
1526-
}
1527-
15281429
/* Label selector styles */
15291430
.label-dropdown.ui.dropdown .menu > .item.active,
15301431
.label-dropdown.ui.dropdown .menu > .item.selected {

0 commit comments

Comments
 (0)