style(vacation): Modify the tooltip of the mail panel when vacation is enabled

This commit is contained in:
Hivert Quentin
2024-04-29 15:08:57 +02:00
parent 2e2e36e0a2
commit 9b5a8cb6fc
2 changed files with 9 additions and 1 deletions
+5
View File
@@ -62,4 +62,9 @@
return (vacationOptions && [[vacationOptions objectForKey: @"enabled"] boolValue]);
}
- (BOOL) userHasVacationDisabled
{
return ![self userHasVacationEnabled];
}
@end
+4 -1
View File
@@ -47,10 +47,13 @@
var:ng-click="navButtonClick"
ng-href="{{::activeUser.path.mail}}">
<md-icon>email</md-icon>
<var:if condition="userHasVacationDisabled">
<md-tooltip><var:string label:value="Mail"/></md-tooltip>
</var:if>
<var:if condition="userHasVacationEnabled">
<md-icon class="md-default-theme md-warn md-bg sg-icon--badge" label:aria-label="Vacation message is enabled">forward</md-icon>
<md-tooltip><var:string label:value="Vacation message is enabled"/></md-tooltip>
</var:if>
<md-tooltip><var:string label:value="Mail"/></md-tooltip>
</md-button>
<md-button class="md-icon-button"
ng-disabled="::baseURL.endsWith('/Administration')"