mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Replaces Terminated with Dismissed as default rank removal
This commit is contained in:
@@ -279,7 +279,7 @@
|
||||
|
||||
if ("terminate")
|
||||
if (is_authenticated())
|
||||
modify.assignment = "Demoted" //VOREStation Edit
|
||||
modify.assignment = "Dismissed" //VOREStation Edit: setting adjustment
|
||||
modify.access = list()
|
||||
|
||||
callHook("terminate_employee", list(modify))
|
||||
|
||||
@@ -167,7 +167,7 @@
|
||||
computer.proc_eject_id(user)
|
||||
if("terminate")
|
||||
if(computer && can_run(user, 1))
|
||||
id_card.assignment = "Demoted" //VOREStation Edit: setting adjustment
|
||||
id_card.assignment = "Dismissed" //VOREStation Edit: setting adjustment
|
||||
id_card.access = list()
|
||||
callHook("terminate_employee", list(id_card))
|
||||
if("edit")
|
||||
|
||||
@@ -126,10 +126,10 @@
|
||||
<div class='item'>
|
||||
<div class='itemLabel'>
|
||||
<!-- VOREStation Edit Start -->
|
||||
Demotions:
|
||||
Dismissals:
|
||||
</div>
|
||||
<div class='itemContent'>
|
||||
{{:helper.link('Demote ' + data.target_owner, 'gear', {'choice' : 'terminate'}, data.target_rank == "Demoted" ? 'disabled' : null, data.target_rank == "Demoted" ? 'disabled' : 'linkDanger')}}
|
||||
{{:helper.link('Dismiss ' + data.target_owner, 'gear', {'choice' : 'terminate'}, data.target_rank == "Dismissed" ? 'disabled' : null, data.target_rank == "Dismissed" ? 'disabled' : 'linkDanger')}}
|
||||
</div>
|
||||
<!-- VOREStation Edit End -->
|
||||
</div>
|
||||
|
||||
@@ -56,10 +56,10 @@
|
||||
<div class='item'>
|
||||
<div class='itemLabel'>
|
||||
<!-- VOREStation Edit Start -->
|
||||
Demotions:
|
||||
Dismissals:
|
||||
</div>
|
||||
<div class='itemContent'>
|
||||
{{:helper.link('Demote ' + data.id_owner, 'gear', {'action' : 'terminate'}, data.id_rank == "Demoted" ? 'disabled' : null, data.id_rank == "Demoted" ? 'disabled' : 'linkDanger')}}
|
||||
{{:helper.link('Dismiss ' + data.id_owner, 'gear', {'action' : 'terminate'}, data.id_rank == "Dismissed" ? 'disabled' : null, data.id_rank == "Dismissed" ? 'disabled' : 'linkDanger')}}
|
||||
</div>
|
||||
<!-- VOREStation Edit End -->
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user