projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00d6b0d
)
Client: fix error alert
author
Chocobozzz
<florian.bigard@gmail.com>
Mon, 26 Sep 2016 20:54:34 +0000
(22:54 +0200)
committer
Chocobozzz
<florian.bigard@gmail.com>
Mon, 26 Sep 2016 20:54:34 +0000
(22:54 +0200)
client/src/app/admin/friends/friend-add/friend-add.component.ts
patch
|
blob
|
history
client/src/app/admin/friends/friend-list/friend-list.component.ts
patch
|
blob
|
history
client/src/app/admin/requests/request-stats/request-stats.component.ts
patch
|
blob
|
history
client/src/app/videos/video-list/video-miniature.component.ts
patch
|
blob
|
history
diff --git
a/client/src/app/admin/friends/friend-add/friend-add.component.ts
b/client/src/app/admin/friends/friend-add/friend-add.component.ts
index 7aab82b971227e8b88b04d90f92517374aa0a516..64165a9a5b312547f2771a639a67ffc3407f4662 100644
(file)
--- a/
client/src/app/admin/friends/friend-add/friend-add.component.ts
+++ b/
client/src/app/admin/friends/friend-add/friend-add.component.ts
@@
-87,7
+87,7
@@
export class FriendAddComponent implements OnInit {
this.router.navigate([ '/admin/friends/list' ]);
// }
},
- error => alert(error)
+ error => alert(error
.text
)
);
}
diff --git
a/client/src/app/admin/friends/friend-list/friend-list.component.ts
b/client/src/app/admin/friends/friend-list/friend-list.component.ts
index afbb48c1c348f0b8234f16f042ed7eb10b9f35ff..88c4800ee74be25da096aee52e5f780c19fbef21 100644
(file)
--- a/
client/src/app/admin/friends/friend-list/friend-list.component.ts
+++ b/
client/src/app/admin/friends/friend-list/friend-list.component.ts
@@
-24,7
+24,7
@@
export class FriendListComponent implements OnInit {
alert('Quit friends!');
this.getFriends();
},
- error => alert(error)
+ error => alert(error
.text
)
);
}
@@
-32,7
+32,7
@@
export class FriendListComponent implements OnInit {
this.friendService.getFriends().subscribe(
friends => this.friends = friends,
- err => alert(err)
+ err => alert(err
.text
)
);
}
}
diff --git
a/client/src/app/admin/requests/request-stats/request-stats.component.ts
b/client/src/app/admin/requests/request-stats/request-stats.component.ts
index 6a9739bbf19add9267be7c05ea2e886fdd870fdb..4b0844574fd1b238ead2320e65375fab6d794b54 100644
(file)
--- a/
client/src/app/admin/requests/request-stats/request-stats.component.ts
+++ b/
client/src/app/admin/requests/request-stats/request-stats.component.ts
@@
-32,7
+32,7
@@
export class RequestStatsComponent implements OnInit, OnDestroy {
this.runInterval();
},
- err => alert(err)
+ err => alert(err
.text
)
);
}
diff --git
a/client/src/app/videos/video-list/video-miniature.component.ts
b/client/src/app/videos/video-list/video-miniature.component.ts
index f807d17ac5606a9830becc959e081fde702cc7c8..398d2db7507a2d4f4f2f6df78e9e99ca5b0488e8 100644
(file)
--- a/
client/src/app/videos/video-list/video-miniature.component.ts
+++ b/
client/src/app/videos/video-list/video-miniature.component.ts
@@
-36,7
+36,7
@@
export class VideoMiniatureComponent {
if (confirm('Do you really want to remove this video?')) {
this.videoService.removeVideo(id).subscribe(
status => this.removed.emit(true),
- error => alert(error)
+ error => alert(error
.text
)
);
}
}