@skysoftware-co/bayan-hr-widgets-ui 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1934,6 +1934,9 @@ class MyMainDetailsWidgetComponent {
|
|
|
1934
1934
|
...s,
|
|
1935
1935
|
title: this.translatePipe.transform(s.title)
|
|
1936
1936
|
}));
|
|
1937
|
+
if (this.employeeMainInfo) {
|
|
1938
|
+
this.applyShortcutUrls();
|
|
1939
|
+
}
|
|
1937
1940
|
}
|
|
1938
1941
|
}
|
|
1939
1942
|
loadEmployeeMainInfo() {
|
|
@@ -1961,12 +1964,7 @@ class MyMainDetailsWidgetComponent {
|
|
|
1961
1964
|
if (v.VacationTypeColor == null)
|
|
1962
1965
|
v.VacationTypeColor = this.defaultVacationColor;
|
|
1963
1966
|
});
|
|
1964
|
-
this.
|
|
1965
|
-
if (item.shortcutId == MainWidgetShortcut.Attendance && this.employeeMainInfo?.AttendanceUrl != null)
|
|
1966
|
-
item.navigateUrl = [this.employeeMainInfo.AttendanceUrl];
|
|
1967
|
-
if (item.shortcutId == MainWidgetShortcut.VacationStatement && this.employeeMainInfo?.VacationStatementUrl != null)
|
|
1968
|
-
item.navigateUrl = [this.employeeMainInfo.VacationStatementUrl];
|
|
1969
|
-
});
|
|
1967
|
+
this.applyShortcutUrls();
|
|
1970
1968
|
this.isLoadingChanged.emit(false);
|
|
1971
1969
|
},
|
|
1972
1970
|
error: (error) => {
|
|
@@ -1976,6 +1974,14 @@ class MyMainDetailsWidgetComponent {
|
|
|
1976
1974
|
},
|
|
1977
1975
|
});
|
|
1978
1976
|
}
|
|
1977
|
+
applyShortcutUrls() {
|
|
1978
|
+
this.shortcuts.forEach(item => {
|
|
1979
|
+
if (item.shortcutId == MainWidgetShortcut.Attendance && this.employeeMainInfo?.AttendanceUrl != null)
|
|
1980
|
+
item.navigateUrl = [this.employeeMainInfo.AttendanceUrl];
|
|
1981
|
+
if (item.shortcutId == MainWidgetShortcut.VacationStatement && this.employeeMainInfo?.VacationStatementUrl != null)
|
|
1982
|
+
item.navigateUrl = [this.employeeMainInfo.VacationStatementUrl];
|
|
1983
|
+
});
|
|
1984
|
+
}
|
|
1979
1985
|
shortcutClicked(icon) {
|
|
1980
1986
|
this.onShortcutClicked.emit(icon);
|
|
1981
1987
|
}
|