Skip to content

Commit

Permalink
Escondido botões não utilizados
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur-Neto committed Aug 31, 2020
1 parent 511befc commit e2cc1c4
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,29 @@ export class MoviesListComponent implements OnInit {
public headerNames: string[] = ['Title', 'Description', 'Duration', 'Screen type', 'Audio Type'];
public displayedColumns: string[] = ['id', 'title', 'description', 'duration', 'screenName', 'audioName'];
public actions: IActionModel[] = [
{
icon: 'add',
name: 'Add',
function: () => {
this.router.navigate(['../create'], { relativeTo: this.route });
}
},
{
icon: 'edit',
name: 'Edit',
function: () => {
if (!this.selectedMovie) {
this.snackBar.open('Select a movie');

return;
}

this.router.navigate(
['../edit', this.selectedMovie.id],
{ relativeTo: this.route, state: { movie: this.selectedMovie } }
);
}
},
/* {
icon: 'add',
name: 'Add',
function: () => {
this.router.navigate(['../create'], { relativeTo: this.route });
}
},
{
icon: 'edit',
name: 'Edit',
function: () => {
if (!this.selectedMovie) {
this.snackBar.open('Select a movie');
return;
}
this.router.navigate(
['../edit', this.selectedMovie.id],
{ relativeTo: this.route, state: { movie: this.selectedMovie } }
);
}
},*/
{
icon: 'delete',
name: 'Delete',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class SessionsListComponent implements OnInit {
public headerNames: string[] = ['Date', 'Movie', 'Room'];
public displayedColumns: string[] = ['id', 'date', 'movieTitle', 'roomName'];
public actions: IActionModel[] = [
{
/*{
icon: 'add',
name: 'Add',
function: () => {
Expand All @@ -43,7 +43,7 @@ export class SessionsListComponent implements OnInit {
{ relativeTo: this.route, state: { session: this.selectedSession } }
);
}
},
},*/
{
icon: 'delete',
name: 'Delete',
Expand Down

0 comments on commit e2cc1c4

Please sign in to comment.