Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Blair2004 committed Apr 21, 2024
1 parent 382d971 commit 4904eff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion app/Http/Middleware/CheckMigrationStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ public function handle( Request $request, Closure $next )
}

if ( Helper::installed() ) {
/**
* @var ModulesService $module
*/
$module = app()->make( ModulesService::class );
$modules = collect( $module->getEnabled() );
$modules = collect( $module->getEnabledAndAutoloadedModules() );
$total = $modules->filter( fn( $module ) => count( $module[ 'migrations' ] ) > 0 );

if ( $total->count() > 0 ) {
Expand Down
5 changes: 4 additions & 1 deletion resources/ts/components/ns-table-row.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@
<div class="rounded-md shadow-xs">
<div class="py-1" role="menu" aria-orientation="vertical" aria-labelledby="options-menu">
<template :key="index" v-for="(action,index) of row.$actions">
<a :href="action.url" v-if="action.type === 'GOTO'" class="ns-action-button block px-4 py-2 text-sm leading-5" role="menuitem" v-html="sanitizeHTML( action.label )"></a>
<a
:href="action.url"
:target="(action.type === 'TAB' ? '_self' : '_blank')"
v-if="[ 'GOTO', 'TAB' ].includes( action.type )" class="ns-action-button block px-4 py-2 text-sm leading-5" role="menuitem" v-html="sanitizeHTML( action.label )"></a>
<a href="javascript:void(0)" @click="triggerAsync( action )" v-if="[ 'GET', 'DELETE', 'POPUP' ].includes( action.type )" class="ns-action-button block px-4 py-2 text-sm leading-5" role="menuitem" v-html="sanitizeHTML( action.label )"></a>
</template>
</div>
Expand Down

0 comments on commit 4904eff

Please sign in to comment.