Merge pull request #5103 from mabashian/proj-notifs

Hook up notifications tab on projects

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot] 2019-10-28 19:38:15 +00:00 committed by GitHub
commit 365f897059
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 14 deletions

View File

@ -1,7 +1,8 @@
import Base from '../Base';
import NotificationsMixin from '../mixins/Notifications.mixin';
import LaunchUpdateMixin from '../mixins/LaunchUpdate.mixin';
class Projects extends LaunchUpdateMixin(Base) {
class Projects extends LaunchUpdateMixin(NotificationsMixin(Base)) {
constructor(http) {
super(http);
this.baseUrl = '/api/v2/projects/';

View File

@ -11,11 +11,11 @@ import styled from 'styled-components';
import CardCloseButton from '@components/CardCloseButton';
import RoutedTabs from '@components/RoutedTabs';
import ContentError from '@components/ContentError';
import NotificationList from '@components/NotificationList';
import ProjectAccess from './ProjectAccess';
import ProjectDetail from './ProjectDetail';
import ProjectEdit from './ProjectEdit';
import ProjectJobTemplates from './ProjectJobTemplates';
import ProjectNotifications from './ProjectNotifications';
import ProjectSchedules from './ProjectSchedules';
import { OrganizationsAPI, ProjectsAPI } from '@api';
@ -229,9 +229,10 @@ class Project extends Component {
<Route
path="/projects/:id/notifications"
render={() => (
<ProjectNotifications
<NotificationList
id={Number(match.params.id)}
canToggleNotifications={canToggleNotifications}
apiModel={ProjectsAPI}
/>
)}
/>

View File

@ -1,10 +0,0 @@
import React, { Component } from 'react';
import { CardBody } from '@patternfly/react-core';
class ProjectNotifications extends Component {
render() {
return <CardBody>Coming soon :)</CardBody>;
}
}
export default ProjectNotifications;

View File

@ -1 +0,0 @@
export { default } from './ProjectNotifications';