@ -37,7 +37,7 @@ import { CurrentProjectService } from 'core-app/core/current-project/current-pro
@Component({
templateUrl: './wp-calendar.template.html',
styleUrls: ['./wp-calendar.sass'],
selector: 'wp-calendar',
selector: 'op-wp-calendar',
providers: [
OpCalendarService,
],
@ -9,6 +9,6 @@
</widget-header>
<ng-container wp-isolated-query-space>
<wp-calendar
[static]="true"></wp-calendar>
<op-wp-calendar
[static]="true"></op-wp-calendar>
</ng-container>
@ -42,7 +42,7 @@ describe Calendar::CalendarController, type: :controller do
FactoryBot.build_stubbed(:user).tap do |user|
allow(user)
.to receive(:allowed_to?) do |permission, p, global:|
permission[:controller] == '/calendar/calendar' &&
permission[:controller] == 'calendar/calendar' &&
permission[:action] == 'index' &&
(p.nil? || p == project)
end