Refactor room mutation location
This commit is contained in:
parent
572074dbfb
commit
b0d4615c2b
|
|
@ -8,6 +8,7 @@ describe('The Room Page', () => {
|
||||||
const RoomEntriesQuery = {
|
const RoomEntriesQuery = {
|
||||||
room: {
|
room: {
|
||||||
slug,
|
slug,
|
||||||
|
restricted: false,
|
||||||
roomEntries: {
|
roomEntries: {
|
||||||
edges: [],
|
edges: [],
|
||||||
},
|
},
|
||||||
|
|
@ -75,7 +76,7 @@ describe('The Room Page', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
cy.visit(`/room/${slug}`);
|
cy.visit(`/room/${slug}`);
|
||||||
cy.getByDataCy('room-visibility-status').should('contain', 'alle Beiträge');
|
cy.getByDataCy('room-visibility-status').should('contain', 'alle Lernenden');
|
||||||
cy.getByDataCy('toggle-room-actions-menu').click();
|
cy.getByDataCy('toggle-room-actions-menu').click();
|
||||||
cy.getByDataCy('change-visibility').click();
|
cy.getByDataCy('change-visibility').click();
|
||||||
cy.getByDataCy('modal-title').should('contain', 'Sichtbarkeit anpassen');
|
cy.getByDataCy('modal-title').should('contain', 'Sichtbarkeit anpassen');
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
<script>
|
<script>
|
||||||
import RoomForm from '@/components/rooms/RoomForm';
|
import RoomForm from '@/components/rooms/RoomForm';
|
||||||
|
|
||||||
import UPDATE_ROOM_MUTATION from '@/graphql/gql/mutations/updateRoom.gql';
|
import UPDATE_ROOM_MUTATION from 'gql/mutations/rooms/updateRoom.gql';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: ['room'],
|
props: ['room'],
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import DELETE_ROOM_ENTRY_MUTATION from '@/graphql/gql/mutations/deleteRoomEntry.gql';
|
import DELETE_ROOM_ENTRY_MUTATION from 'gql/mutations/rooms/deleteRoomEntry.gql';
|
||||||
import ROOM_ENTRIES_QUERY from '@/graphql/gql/queries/roomEntriesQuery.gql';
|
import ROOM_ENTRIES_QUERY from '@/graphql/gql/queries/roomEntriesQuery.gql';
|
||||||
import ME_QUERY from '@/graphql/gql/queries/meQuery.gql';
|
import ME_QUERY from '@/graphql/gql/queries/meQuery.gql';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import UPDATE_ROOM_ENTRY_MUTATION from '@/graphql/gql/mutations/updateRoomEntry.gql';
|
import UPDATE_ROOM_ENTRY_MUTATION from 'gql/mutations/rooms/updateRoomEntry.gql';
|
||||||
import ROOM_ENTRY_QUERY from '@/graphql/gql/queries/roomEntryByIdQuery.gql';
|
import ROOM_ENTRY_QUERY from '@/graphql/gql/queries/roomEntryByIdQuery.gql';
|
||||||
|
|
||||||
import ContentsForm from '@/components/content-block-form/ContentsForm';
|
import ContentsForm from '@/components/content-block-form/ContentsForm';
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import NEW_ROOM_ENTRY_MUTATION from '@/graphql/gql/mutations/addRoomEntry.gql';
|
import NEW_ROOM_ENTRY_MUTATION from 'gql/mutations/rooms/addRoomEntry.gql';
|
||||||
import ROOM_ENTRIES_QUERY from '@/graphql/gql/queries/roomEntriesQuery.gql';
|
import ROOM_ENTRIES_QUERY from '@/graphql/gql/queries/roomEntriesQuery.gql';
|
||||||
|
|
||||||
import ContentsForm from '@/components/content-block-form/ContentsForm';
|
import ContentsForm from '@/components/content-block-form/ContentsForm';
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
<script>
|
<script>
|
||||||
import RoomForm from '@/components/rooms/RoomForm';
|
import RoomForm from '@/components/rooms/RoomForm';
|
||||||
|
|
||||||
import ADD_ROOM_MUTATION from '@/graphql/gql/mutations/addRoom.gql';
|
import ADD_ROOM_MUTATION from 'gql/mutations/rooms/addRoom.gql';
|
||||||
import ROOMS_QUERY from '@/graphql/gql/queries/roomsQuery.gql';
|
import ROOMS_QUERY from '@/graphql/gql/queries/roomsQuery.gql';
|
||||||
|
|
||||||
const defaultAppearance = 'blue';
|
const defaultAppearance = 'blue';
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,9 @@
|
||||||
{{ room.description }}
|
{{ room.description }}
|
||||||
</p>
|
</p>
|
||||||
<div class="room__meta">
|
<div class="room__meta">
|
||||||
<room-visibility-widget />
|
<room-visibility-widget
|
||||||
|
:restricted="room.restricted"
|
||||||
|
data-cy="room-visibility-status" />
|
||||||
<room-group-widget v-bind="room.schoolClass"/>
|
<room-group-widget v-bind="room.schoolClass"/>
|
||||||
<entry-count-widget :entry-count="roomEntryCount"/>
|
<entry-count-widget :entry-count="roomEntryCount"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue