Skip to content

Commit

Permalink
enh: improve formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Cleopatra Enjeck M <patrathewhiz@gmail.com>
  • Loading branch information
enjeck committed Oct 21, 2024
1 parent 7a5dab1 commit ed3d714
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions lib/Migration/Version000800Date20240828000000.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
/** @var ISchemaWrapper $schema */
$schema = $schemaClosure();

if ($schema->hasTable('tables_columns')) {
if ($schema->hasTable('tables_row_cells_usergroup')) {
$table = $schema->getTable('tables_columns');
if (!$table->hasColumn('usergroup_select_teams')) {
$table->addColumn('usergroup_select_teams', Types::BOOLEAN, [
'notnull' => false,
'default' => 0,
]);
}
if ($schema->hasTable('tables_columns')) {
if ($schema->hasTable('tables_row_cells_usergroup')) {
$table = $schema->getTable('tables_columns');
if (!$table->hasColumn('usergroup_select_teams')) {
$table->addColumn('usergroup_select_teams', Types::BOOLEAN, [
'notnull' => false,
'default' => 0,
]);
}
}
return $schema;
}
Expand Down
6 changes: 3 additions & 3 deletions src/shared/mixins/searchUserGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ export default {
getShareTypeString() {
const strings = []
if (this.selectUsers) {
strings.push('user')
strings.push('User')
}
if (this.selectGroups) {
strings.push('group')
strings.push('Group')
}
if (this?.selectTeams) {
strings.push('team')
strings.push('Team')
}
return strings.join(' or ')
},
Expand Down

0 comments on commit ed3d714

Please sign in to comment.