Skip to content

Commit

Permalink
feat: adicionar parâmetro dispositivosBloqueados
Browse files Browse the repository at this point in the history
refs #900
  • Loading branch information
fragomeni committed Jun 6, 2024
1 parent 424c4b7 commit 95730e6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/lexml-emenda.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ export class LexmlEmendaParametrosEdicao {
// Opcional para modo 'edicao'
projetoNorma?: ProjetoNorma;

// Lista de lexml id's de artigos bloqueados para edição.
// Não é salvo junto com a emenda, portanto deve ser informado também ao abrir uma emenda existente.
dispositivosBloqueados?: string[];

// Emenda a ser aberta para edição
emenda?: Emenda;

Expand Down
1 change: 1 addition & 0 deletions src/model/dispositivo/dispositivo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export interface Dispositivo extends Tipo, Hierarquia, Numeracao, Conteudo, Bloc
cabecaAlteracao?: boolean;
notaAlteracao?: string;
motivosOperacaoNaoPermitida?: string[];
bloqueado?: boolean;
}

export interface Articulacao extends Dispositivo {
Expand Down
1 change: 1 addition & 0 deletions src/model/elemento/elemento.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@ export class Elemento extends Referencia {
elementoAnteriorNaSequenciaDeLeitura?: Referencia;
revisao?: Revisao;
ultimoFilhoDireto?: Referencia;
bloqueado?: boolean;
}

0 comments on commit 95730e6

Please sign in to comment.