Merge pull request #5 from valueonag/feat/cost-control
fix page zugriffsverwaltung - buttons removed
This commit is contained in:
commit
55209591f6
1 changed files with 60 additions and 55 deletions
|
|
@ -320,61 +320,66 @@ export const AccessManagementHub: React.FC = () => {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className={hubStyles.filters}>
|
<div className={hubStyles.filters}>
|
||||||
<div className={styles.filterGroup}>
|
{/* Filter dropdowns only shown in list view - hierarchy shows everything */}
|
||||||
<label className={styles.filterLabel}>
|
{viewMode === 'list' && (
|
||||||
<FaBuilding style={{ marginRight: 8 }} />
|
<>
|
||||||
Mandant:
|
<div className={styles.filterGroup}>
|
||||||
</label>
|
<label className={styles.filterLabel}>
|
||||||
<select
|
<FaBuilding style={{ marginRight: 8 }} />
|
||||||
className={styles.filterSelect}
|
Mandant:
|
||||||
value={selectedMandateId}
|
</label>
|
||||||
onChange={(e) => setSelectedMandateId(e.target.value)}
|
<select
|
||||||
>
|
className={styles.filterSelect}
|
||||||
<option value="">-- Mandant wählen --</option>
|
value={selectedMandateId}
|
||||||
{mandates.map((m) => (
|
onChange={(e) => setSelectedMandateId(e.target.value)}
|
||||||
<option key={m.id} value={m.id}>
|
>
|
||||||
{getMandateName(m)}
|
<option value="">-- Mandant wählen --</option>
|
||||||
</option>
|
{mandates.map((m) => (
|
||||||
))}
|
<option key={m.id} value={m.id}>
|
||||||
</select>
|
{getMandateName(m)}
|
||||||
</div>
|
</option>
|
||||||
<div className={styles.filterGroup}>
|
))}
|
||||||
<label className={styles.filterLabel}>
|
</select>
|
||||||
<FaCube style={{ marginRight: 8 }} />
|
</div>
|
||||||
Feature:
|
<div className={styles.filterGroup}>
|
||||||
</label>
|
<label className={styles.filterLabel}>
|
||||||
<select
|
<FaCube style={{ marginRight: 8 }} />
|
||||||
className={styles.filterSelect}
|
Feature:
|
||||||
value={selectedFeatureCode}
|
</label>
|
||||||
onChange={(e) => setSelectedFeatureCode(e.target.value)}
|
<select
|
||||||
>
|
className={styles.filterSelect}
|
||||||
<option value="">Alle</option>
|
value={selectedFeatureCode}
|
||||||
{features.map((f) => (
|
onChange={(e) => setSelectedFeatureCode(e.target.value)}
|
||||||
<option key={f.code} value={f.code}>
|
>
|
||||||
{getFeatureLabel(f)}
|
<option value="">Alle</option>
|
||||||
</option>
|
{features.map((f) => (
|
||||||
))}
|
<option key={f.code} value={f.code}>
|
||||||
</select>
|
{getFeatureLabel(f)}
|
||||||
</div>
|
</option>
|
||||||
{selectedMandateId && (
|
))}
|
||||||
<div className={styles.headerActions}>
|
</select>
|
||||||
<button
|
</div>
|
||||||
className={styles.secondaryButton}
|
{selectedMandateId && (
|
||||||
onClick={() =>
|
<div className={styles.headerActions}>
|
||||||
fetchInstances(selectedMandateId, selectedFeatureCode || undefined)
|
<button
|
||||||
}
|
className={styles.secondaryButton}
|
||||||
disabled={loading}
|
onClick={() =>
|
||||||
>
|
fetchInstances(selectedMandateId, selectedFeatureCode || undefined)
|
||||||
<FaSync className={loading ? 'spinning' : ''} /> Aktualisieren
|
}
|
||||||
</button>
|
disabled={loading}
|
||||||
<button
|
>
|
||||||
className={styles.primaryButton}
|
<FaSync className={loading ? 'spinning' : ''} /> Aktualisieren
|
||||||
onClick={() => setShowWizard(true)}
|
</button>
|
||||||
disabled={features.length === 0}
|
<button
|
||||||
>
|
className={styles.primaryButton}
|
||||||
+ Neue Instanz erstellen
|
onClick={() => setShowWizard(true)}
|
||||||
</button>
|
disabled={features.length === 0}
|
||||||
</div>
|
>
|
||||||
|
+ Neue Instanz erstellen
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue