Skip to content

Commit

Permalink
Merge pull request #233 from ogomaemmanuel/node-sass
Browse files Browse the repository at this point in the history
Node sass
  • Loading branch information
ogomaemmanuel committed Dec 9, 2023
2 parents 8dc20c8 + 16e1a7a commit edf7b63
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ node_modules/
src/main/resources/message.properties

logs
logs/logfile.txt
logs/logfile.txt
hr_core/src/main/resources/static/js/dist
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
</template>
<script>
import CommonMixin from "../../../mixins/common_mixin"
import {Notification as notify} from "element-ui";
export default {
mixins: [CommonMixin],
Expand All @@ -50,10 +51,10 @@
axios.post("/api/departments",
this.department).then(resp => {
this.loading = false
vm.$swal({
notify({
type: "success",
title: "Success",
text: "Department successfully created"
message: "Department successfully created"
})
this.$emit("departmentCreated")
}, error => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
<script>
import CommonMixin from "../../../mixins/common_mixin"
import _debounce from "lodash.debounce"
import {Notification as notify} from "element-ui";
export default {
mixins: [CommonMixin],
Expand Down Expand Up @@ -103,10 +104,10 @@
let vm = this;
this.designation.departmentId = this.selectedDepartment.id;
axios.post("/api/designations", this.designation).then(resp => {
vm.$swal({
notify({
type: "success",
title: "Success",
text: "Designation successfully created"
message: "Designation successfully created"
})
this.$emit("designationCreated")
}, error => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@
import {DatePicker} from "element-ui"
import ModalTemplate from "../../common/ModalTemplate";
import {Notification as notify } from "element-ui"
export default {
mixins: [CommonMixin],
components: {
Expand Down Expand Up @@ -107,12 +109,13 @@
let vm = this;
axios.post("/api/overtime-requests",
this.overtimeRequest).then(resp => {
vm.$swal({
type: "success",
notify({
message: "Overtime request successfully saved",
title: "Success",
text: "Overtime request successfully saved"
})
this.$emit("overtimeRequestCreated")
type: "success"
})
this.$router.back();
//this.$emit("overtimeRequestCreated")
}, error => {
if (error.response.status == 400) {
this.errors = error.response.data;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
</div>
</div>
<router-view
@overtimeRequestCreated="getOvertimeRequests()"
@overtimeRequestUpdated="getOvertimeRequests()">
</router-view>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
import EmployeeSelectInput from "../../common/EmployeeSelectInput";
import common_mixin from "../../../mixins/common_mixin";
import {DatePicker} from "element-ui"
import {Notification as notify} from "element-ui"
export default {
mixins: [common_mixin],
Expand Down Expand Up @@ -109,10 +110,10 @@
if (this.$refs.terminationForm.checkValidity()) {
axios.post(`/api/employee-terminations`,
this.employeeTermination).then(resp => {
vm.$swal({
notify({
type: "success",
title: "Success",
text: "Resignation successfully saved"
message: "Resignation successfully saved"
})
this.$emit("terminationSaved")
}, error => {
Expand Down

0 comments on commit edf7b63

Please sign in to comment.