feat: desaparecen los botones para las semanas que no tienen registros
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
475bc2c255
commit
9b11987d75
|
@ -376,7 +376,10 @@ class Controller extends Section {
|
|||
this.$http.get('WorkerTimeControlMails', {filter})
|
||||
.then(res => {
|
||||
const [data] = res.data;
|
||||
if (!data) return;
|
||||
if (!data) {
|
||||
if (this.weekNumber == weekNumberValue) this.state = null;
|
||||
return;
|
||||
}
|
||||
|
||||
const state = data.state;
|
||||
if (this.weekNumber == weekNumberValue) {
|
||||
|
|
Loading…
Reference in New Issue