import { Component, computed, inject, input, signal } from '@angular/core'; import { I18nService } from '@core/i18n.service'; import { DialogsService, type ChmodRequest } from '@core/dialogs.service'; import { FocusService } from '@core/focus.service'; const ROLES = ['roleOwner', 'roleGroup', 'roleOthers'] as const; const PERMS = ['r', 'w', 'x'] as const; @Component({ selector: 'app-chmod-dialog', template: `
{{ targetLabel() }}
| {{ i18n.t('dialogs.read') }} | {{ i18n.t('dialogs.write') }} | {{ i18n.t('dialogs.execute') }} | |
|---|---|---|---|
| {{ i18n.t('dialogs.' + role) }} | @for (perm of perms; track perm; let p = $index) {} |